home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / NoteImages.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  53.6 KB  |  1,209 lines  |  [TEXT/KAHL]

  1. /* NoteImages.c */
  2. /*****************************************************************************/
  3. /*                                                                           */
  4. /*    Out Of Phase:  Digital Music Synthesis on General Purpose Computers    */
  5. /*    Copyright (C) 1994  Thomas R. Lawrence                                 */
  6. /*                                                                           */
  7. /*    This program is free software; you can redistribute it and/or modify   */
  8. /*    it under the terms of the GNU General Public License as published by   */
  9. /*    the Free Software Foundation; either version 2 of the License, or      */
  10. /*    (at your option) any later version.                                    */
  11. /*                                                                           */
  12. /*    This program is distributed in the hope that it will be useful,        */
  13. /*    but WITHOUT ANY WARRANTY; without even the implied warranty of         */
  14. /*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          */
  15. /*    GNU General Public License for more details.                           */
  16. /*                                                                           */
  17. /*    You should have received a copy of the GNU General Public License      */
  18. /*    along with this program; if not, write to the Free Software            */
  19. /*    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              */
  20. /*                                                                           */
  21. /*    Thomas R. Lawrence can be reached at tomlaw@world.std.com.             */
  22. /*                                                                           */
  23. /*****************************************************************************/
  24.  
  25. #include "MiscInfo.h"
  26. #include "Audit.h"
  27. #include "Debug.h"
  28. #include "Definitions.h"
  29.  
  30. #define Compiling_NoteImages
  31. #include "NoteImages.h"
  32. #include "Screen.h"
  33.  
  34.  
  35. EXECUTE(static MyBoolean        Initialized = False;)
  36.  
  37. Bitmap*                                            SixtyFourthNoteImage;
  38. Bitmap*                                            SixtyFourthNoteMask;
  39. Bitmap*                                            ThirtySecondNoteImage;
  40. Bitmap*                                            ThirtySecondNoteMask;
  41. Bitmap*                                            SixteenthNoteImage;
  42. Bitmap*                                            SixteenthNoteMask;
  43. Bitmap*                                            EighthNoteImage;
  44. Bitmap*                                            EighthNoteMask;
  45. Bitmap*                                            QuarterNoteImage;
  46. Bitmap*                                            QuarterNoteMask;
  47. Bitmap*                                            HalfNoteImage;
  48. Bitmap*                                            HalfNoteMask;
  49. Bitmap*                                            WholeNoteImage;
  50. Bitmap*                                            WholeNoteMask;
  51. Bitmap*                                            DoubleNoteImage;
  52. Bitmap*                                            DoubleNoteMask;
  53. Bitmap*                                            QuadNoteImage;
  54. Bitmap*                                            QuadNoteMask;
  55. Bitmap*                                            DotImage;
  56. Bitmap*                                            DotMask;
  57. Bitmap*                                            SharpImage;
  58. Bitmap*                                            SharpMask;
  59. Bitmap*                                            FlatImage;
  60. Bitmap*                                            FlatMask;
  61. Bitmap*                                            NaturalImage;
  62. Bitmap*                                            NaturalMask;
  63. Bitmap*                                            SortaSharpImage;
  64. Bitmap*                                            SortaSharpMask;
  65. Bitmap*                                            SortaFlatImage;
  66. Bitmap*                                            SortaFlatMask;
  67. Bitmap*                                            Div3Image;
  68. Bitmap*                                            Div3Mask;
  69. Bitmap*                                            Div5Image;
  70. Bitmap*                                            Div5Mask;
  71. Bitmap*                                            Div7Image;
  72. Bitmap*                                            Div7Mask;
  73. Bitmap*                                            SixtyFourthRestImage;
  74. Bitmap*                                            SixtyFourthRestMask;
  75. Bitmap*                                            ThirtySecondRestImage;
  76. Bitmap*                                            ThirtySecondRestMask;
  77. Bitmap*                                            SixteenthRestImage;
  78. Bitmap*                                            SixteenthRestMask;
  79. Bitmap*                                            EighthRestImage;
  80. Bitmap*                                            EighthRestMask;
  81. Bitmap*                                            QuarterRestImage;
  82. Bitmap*                                            QuarterRestMask;
  83. Bitmap*                                            HalfRestImage;
  84. Bitmap*                                            HalfRestMask;
  85. Bitmap*                                            WholeRestImage;
  86. Bitmap*                                            WholeRestMask;
  87. Bitmap*                                            DoubleRestImage;
  88. Bitmap*                                            DoubleRestMask;
  89. Bitmap*                                            QuadRestImage;
  90. Bitmap*                                            QuadRestMask;
  91. Bitmap*                                            GreyMask;
  92.  
  93.  
  94. static unsigned char                oSixtyFourthNoteImage[] =
  95.     {
  96.         0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x27,0x00,
  97.         0x00,0x00,0x31,0xC0,0x00,0x00,0x3C,0x40,0x00,0x00,0x27,0x00,0x00,0x00,0x31,0xC0,
  98.         0x00,0x00,0x3C,0x40,0x00,0x00,0x27,0x00,0x00,0x00,0x31,0xC0,0x00,0x00,0x3C,0x40,
  99.         0x00,0x00,0x27,0x00,0x00,0x00,0x21,0xC0,0x00,0x00,0x20,0x40,0x00,0x00,0x20,0x00,
  100.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  101.         0x00,0x03,0xE0,0x00,0x00,0x0F,0xE0,0x00,0x00,0x1F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  102.         0x00,0x3F,0xC0,0x00,0x00,0x3F,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  103.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  104.     };
  105.  
  106. static unsigned char                oSixtyFourthNoteMask[] =
  107.     {
  108.         0x00,0x00,0x78,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0xE0,
  109.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,
  110.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,
  111.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x73,0xE0,0x00,0x00,0x70,0xE0,
  112.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  113.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,
  114.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  115.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  116.     };
  117.  
  118. static unsigned char                oThirtySecondNoteImage[] =
  119.     {
  120.         0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x27,0x00,
  121.         0x00,0x00,0x31,0xC0,0x00,0x00,0x3C,0x40,0x00,0x00,0x27,0x00,0x00,0x00,0x31,0xC0,
  122.         0x00,0x00,0x3C,0x40,0x00,0x00,0x27,0x00,0x00,0x00,0x21,0xC0,0x00,0x00,0x20,0x40,
  123.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  124.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  125.         0x00,0x03,0xE0,0x00,0x00,0x0F,0xE0,0x00,0x00,0x1F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  126.         0x00,0x3F,0xC0,0x00,0x00,0x3F,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  127.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  128.     };
  129.  
  130. static unsigned char                oThirtySecondNoteMask[] =
  131.     {
  132.         0x00,0x00,0x78,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0xE0,
  133.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,
  134.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x73,0xE0,
  135.         0x00,0x00,0x70,0xE0,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  136.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  137.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,
  138.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  139.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  140.     };
  141.  
  142. static unsigned char                oSixteenthNoteImage[] =
  143.     {
  144.         0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x27,0x00,
  145.         0x00,0x00,0x31,0xC0,0x00,0x00,0x3C,0x40,0x00,0x00,0x27,0x00,0x00,0x00,0x21,0xC0,
  146.         0x00,0x00,0x20,0x40,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  147.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  148.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  149.         0x00,0x03,0xE0,0x00,0x00,0x0F,0xE0,0x00,0x00,0x1F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  150.         0x00,0x3F,0xC0,0x00,0x00,0x3F,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  151.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  152.     };
  153.  
  154. static unsigned char                oSixteenthNoteMask[] =
  155.     {
  156.         0x00,0x00,0x78,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0xE0,
  157.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xE0,
  158.         0x00,0x00,0x73,0xE0,0x00,0x00,0x70,0xE0,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  159.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  160.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  161.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,
  162.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  163.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  164.     };
  165.  
  166. static unsigned char                oEighthNoteImage[] =
  167.     {
  168.         0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x27,0x00,
  169.         0x00,0x00,0x21,0xC0,0x00,0x00,0x20,0x40,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  170.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  171.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  172.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  173.         0x00,0x03,0xE0,0x00,0x00,0x0F,0xE0,0x00,0x00,0x1F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  174.         0x00,0x3F,0xC0,0x00,0x00,0x3F,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  175.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  176.     };
  177.  
  178. static unsigned char                oEighthNoteMask[] =
  179.     {
  180.         0x00,0x00,0x78,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0xE0,
  181.         0x00,0x00,0x7F,0xE0,0x00,0x00,0x73,0xE0,0x00,0x00,0x70,0xE0,0x00,0x00,0x70,0x00,
  182.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  183.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  184.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  185.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,
  186.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  187.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  188.     };
  189.  
  190. static unsigned char                oQuarterNoteImage[] =
  191.     {
  192.         0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  193.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  194.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  195.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  196.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  197.         0x00,0x03,0xE0,0x00,0x00,0x0F,0xE0,0x00,0x00,0x1F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  198.         0x00,0x3F,0xC0,0x00,0x00,0x3F,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  199.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  200.     };
  201.  
  202. static unsigned char                oQuarterNoteMask[] =
  203.     {
  204.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  205.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  206.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  207.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  208.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  209.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,
  210.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  211.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  212.     };
  213.  
  214. static unsigned char                oHalfNoteImage[] =
  215.     {
  216.         0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  217.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  218.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  219.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  220.         0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x00,
  221.         0x00,0x03,0xE0,0x00,0x00,0x0C,0x20,0x00,0x00,0x10,0x20,0x00,0x00,0x20,0x20,0x00,
  222.         0x00,0x20,0x40,0x00,0x00,0x21,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  223.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  224.     };
  225.  
  226. static unsigned char                oHalfNoteMask[] =
  227.     {
  228.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  229.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  230.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  231.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,
  232.         0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x70,0x00,0x00,0x07,0xF0,0x00,
  233.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7E,0x70,0x00,0x00,0x78,0xF0,0x00,
  234.         0x00,0x73,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  235.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  236.     };
  237.  
  238. static unsigned char                oWholeNoteImage[] =
  239.     {
  240.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  241.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  242.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  243.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  244.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  245.         0x00,0x03,0xC0,0x00,0x00,0x0C,0x20,0x00,0x00,0x10,0x20,0x00,0x00,0x20,0x20,0x00,
  246.         0x00,0x20,0x40,0x00,0x00,0x21,0x80,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,
  247.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  248.     };
  249.  
  250. static unsigned char                oWholeNoteMask[] =
  251.     {
  252.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  253.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  254.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  255.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  256.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xE0,0x00,
  257.         0x00,0x1F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7E,0x70,0x00,0x00,0x78,0xF0,0x00,
  258.         0x00,0x73,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0x7F,0xC0,0x00,0x00,0x3F,0x00,0x00,
  259.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  260.     };
  261.  
  262. static unsigned char                oDoubleNoteImage[] =
  263.     {
  264.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  265.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  266.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  267.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  268.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x10,0x00,
  269.         0x00,0x43,0xD0,0x00,0x00,0x4C,0x30,0x00,0x00,0x50,0x30,0x00,0x00,0x60,0x30,0x00,
  270.         0x00,0x60,0x50,0x00,0x00,0x61,0x90,0x00,0x00,0x5E,0x10,0x00,0x00,0x40,0x10,0x00,
  271.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  272.     };
  273.  
  274. static unsigned char                oDoubleNoteMask[] =
  275.     {
  276.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  277.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  278.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  279.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  280.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x00,0x00,0xE3,0xF8,0x00,
  281.         0x00,0xEF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFC,0x78,0x00,0x00,0xF8,0xF8,0x00,
  282.         0x00,0xF1,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xB8,0x00,0x00,0xFE,0x38,0x00,
  283.         0x00,0xE0,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  284.     };
  285.  
  286. static unsigned char                oQuadNoteImage[] =
  287.     {
  288.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  289.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  290.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  291.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  292.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x10,0x00,
  293.         0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x40,0x10,0x00,0x00,0x40,0x10,0x00,
  294.         0x00,0x40,0x10,0x00,0x00,0x7F,0xF0,0x00,0x00,0x7F,0xF0,0x00,0x00,0x40,0x10,0x00,
  295.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  296.     };
  297.  
  298. static unsigned char                oQuadNoteMask[] =
  299.     {
  300.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  301.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  302.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  303.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  304.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x00,0x00,0xFF,0xF8,0x00,
  305.         0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xE0,0x38,0x00,
  306.         0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,
  307.         0x00,0xE0,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  308.     };
  309.  
  310. static unsigned char                oDotImage[] =
  311.     {
  312.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  313.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  314.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  315.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  316.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  317.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x03,0x80,
  318.         0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  319.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  320.     };
  321.  
  322. static unsigned char                oDotMask[] =
  323.     {
  324.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  325.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  326.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  327.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  328.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  329.         0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x07,0xC0,0x00,0x00,0x07,0xC0,
  330.         0x00,0x00,0x07,0xC0,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  331.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  332.     };
  333.  
  334. static unsigned char                oSharpImage[] =
  335.     {
  336.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  337.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  338.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  339.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  340.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,
  341.         0x12,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x3A,0x00,0x00,0x00,0x12,0x00,0x00,0x00,
  342.         0x12,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x3A,0x00,0x00,0x00,
  343.         0x12,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  344.     };
  345.  
  346. static unsigned char                oSharpMask[] =
  347.     {
  348.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  349.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  350.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  351.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  352.         0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,
  353.         0x3F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x00,0x00,0x00,
  354.         0x3F,0x00,0x00,0x00,0x3F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,
  355.         0x7F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  356.     };
  357.  
  358. static unsigned char                oFlatImage[] =
  359.     {
  360.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  361.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  362.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  363.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,
  364.         0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,
  365.         0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x19,0x00,0x00,0x00,
  366.         0x11,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  367.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  368.     };
  369.  
  370. static unsigned char                oFlatMask[] =
  371.     {
  372.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  373.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  374.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  375.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,
  376.         0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,
  377.         0x38,0x00,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,
  378.         0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,
  379.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  380.     };
  381.  
  382. static unsigned char                oNaturalImage[] =
  383.     {
  384.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  385.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  386.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  387.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  388.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  389.         0x10,0x00,0x00,0x00,0x16,0x00,0x00,0x00,0x1A,0x00,0x00,0x00,0x12,0x00,0x00,0x00,
  390.         0x12,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x16,0x00,0x00,0x00,0x1A,0x00,0x00,0x00,
  391.         0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  392.     };
  393.  
  394. static unsigned char                oNaturalMask[] =
  395.     {
  396.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  397.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  398.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  399.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  400.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,
  401.         0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,
  402.         0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,
  403.         0x3F,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  404.     };
  405.  
  406. static unsigned char                oSortaSharpImage[] =
  407.     {
  408.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  409.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  410.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  411.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  412.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,
  413.         0x12,0x00,0x00,0x00,0x13,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  414.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x32,0x00,0x00,0x00,
  415.         0x12,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  416.     };
  417.  
  418. static unsigned char                oSortaSharpMask[] =
  419.     {
  420.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  421.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  422.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  423.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  424.         0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,
  425.         0x3F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,
  426.         0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,0x7F,0x80,0x00,0x00,
  427.         0x7F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  428.     };
  429.  
  430. static unsigned char                oSortaFlatImage[] =
  431.     {
  432.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  433.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  434.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  435.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  436.         0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  437.         0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x15,0x00,0x00,0x00,0x08,0x00,0x00,0x00,
  438.         0x11,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  439.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  440.     };
  441.  
  442. static unsigned char                oSortaFlatMask[] =
  443.     {
  444.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  445.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  446.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  447.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,
  448.         0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,
  449.         0x38,0x00,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,
  450.         0x3F,0x80,0x00,0x00,0x3F,0x80,0x00,0x00,0x3F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,
  451.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  452.     };
  453.  
  454. static unsigned char                oDiv3Image[] =
  455.     {
  456.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  457.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,0x00,
  458.         0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0xC0,0x00,0x00,
  459.         0x00,0xC0,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  460.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  461.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  462.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  463.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  464.     };
  465.  
  466. static unsigned char                oDiv3Mask[] =
  467.     {
  468.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  469.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x07,0xE0,0x00,0x00,
  470.         0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,
  471.         0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
  472.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  473.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  474.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  475.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  476.     };
  477.  
  478. static unsigned char                oDiv5Image[] =
  479.     {
  480.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  481.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x00,0x00,
  482.         0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0xC0,0x00,0x00,
  483.         0x00,0xC0,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  484.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  485.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  486.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  487.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  488.     };
  489.  
  490. static unsigned char                oDiv5Mask[] =
  491.     {
  492.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  493.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,
  494.         0x07,0xE0,0x00,0x00,0x07,0xC0,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,
  495.         0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
  496.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  497.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  498.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  499.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  500.     };
  501.  
  502. static unsigned char                oDiv7Image[] =
  503.     {
  504.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  505.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xC0,0x00,0x00,
  506.         0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,0x00,
  507.         0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  508.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  509.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  510.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  511.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  512.     };
  513.  
  514. static unsigned char                oDiv7Mask[] =
  515.     {
  516.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  517.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xE0,0x00,0x00,0x07,0xE0,0x00,0x00,
  518.         0x07,0xE0,0x00,0x00,0x03,0xE0,0x00,0x00,0x03,0xE0,0x00,0x00,0x07,0xC0,0x00,0x00,
  519.         0x07,0xC0,0x00,0x00,0x07,0x80,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
  520.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  521.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  522.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  523.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  524.     };
  525.  
  526. static unsigned char                oSixtyFourthRestImage[] =
  527.     {
  528.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  529.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC6,0x00,
  530.         0x00,0x01,0xDA,0x00,0x00,0x01,0xE4,0x00,0x00,0x00,0x04,0x00,0x00,0x03,0x18,0x00,
  531.         0x00,0x07,0x68,0x00,0x00,0x07,0x90,0x00,0x00,0x00,0x10,0x00,0x00,0x0C,0x60,0x00,
  532.         0x00,0x1D,0xA0,0x00,0x00,0x1E,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x31,0x80,0x00,
  533.         0x00,0x76,0x80,0x00,0x00,0x79,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,
  534.         0x00,0x02,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x08,0x00,0x00,
  535.         0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  536.     };
  537.  
  538. static unsigned char                oSixtyFourthRestMask[] =
  539.     {
  540.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  541.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xEF,0x00,0x00,0x03,0xFF,0x00,
  542.         0x00,0x03,0xFF,0x00,0x00,0x03,0xFF,0x00,0x00,0x07,0xFE,0x00,0x00,0x0F,0xFE,0x00,
  543.         0x00,0x0F,0xFC,0x00,0x00,0x0F,0xFC,0x00,0x00,0x1F,0xF8,0x00,0x00,0x3F,0xF8,0x00,
  544.         0x00,0x3F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0xFF,0xE0,0x00,
  545.         0x00,0xFF,0xC0,0x00,0x00,0xFF,0xC0,0x00,0x00,0xFF,0x80,0x00,0x00,0x07,0x80,0x00,
  546.         0x00,0x0F,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x1E,0x00,0x00,
  547.         0x00,0x1C,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  548.     };
  549.  
  550. static unsigned char                oThirtySecondRestImage[] =
  551.     {
  552.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  553.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  554.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x18,0x00,
  555.         0x00,0x07,0x68,0x00,0x00,0x07,0x90,0x00,0x00,0x00,0x10,0x00,0x00,0x0C,0x60,0x00,
  556.         0x00,0x1D,0xA0,0x00,0x00,0x1E,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x31,0x80,0x00,
  557.         0x00,0x76,0x80,0x00,0x00,0x79,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,
  558.         0x00,0x02,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x08,0x00,0x00,
  559.         0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  560.     };
  561.  
  562. static unsigned char                oThirtySecondRestMask[] =
  563.     {
  564.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  565.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  566.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xBC,0x00,0x00,0x0F,0xFC,0x00,
  567.         0x00,0x0F,0xFC,0x00,0x00,0x0F,0xFC,0x00,0x00,0x1F,0xF8,0x00,0x00,0x3F,0xF8,0x00,
  568.         0x00,0x3F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x7F,0xE0,0x00,0x00,0xFF,0xE0,0x00,
  569.         0x00,0xFF,0xC0,0x00,0x00,0xFF,0xC0,0x00,0x00,0xFF,0x80,0x00,0x00,0x07,0x80,0x00,
  570.         0x00,0x0F,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x1E,0x00,0x00,
  571.         0x00,0x1C,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  572.     };
  573.  
  574. static unsigned char                oSixteenthRestImage[] =
  575.     {
  576.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  577.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  578.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x18,0x00,
  579.         0x00,0x07,0x68,0x00,0x00,0x07,0x90,0x00,0x00,0x00,0x10,0x00,0x00,0x0C,0x60,0x00,
  580.         0x00,0x1D,0xA0,0x00,0x00,0x1E,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x80,0x00,
  581.         0x00,0x00,0x80,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,
  582.         0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  583.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  584.     };
  585.  
  586. static unsigned char                oSixteenthRestMask[] =
  587.     {
  588.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  589.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  590.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xBC,0x00,0x00,0x0F,0xFC,0x00,
  591.         0x00,0x0F,0xFC,0x00,0x00,0x0F,0xFC,0x00,0x00,0x1F,0xF8,0x00,0x00,0x3F,0xF8,0x00,
  592.         0x00,0x3F,0xF0,0x00,0x00,0x3F,0xF0,0x00,0x00,0x3F,0xE0,0x00,0x00,0x01,0xE0,0x00,
  593.         0x00,0x03,0xC0,0x00,0x00,0x03,0xC0,0x00,0x00,0x07,0x80,0x00,0x00,0x07,0x80,0x00,
  594.         0x00,0x07,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  595.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  596.     };
  597.  
  598. static unsigned char                oEighthRestImage[] =
  599.     {
  600.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  601.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  602.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x18,0x00,
  603.         0x00,0x07,0x68,0x00,0x00,0x07,0x90,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x20,0x00,
  604.         0x00,0x00,0x20,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x80,0x00,
  605.         0x00,0x00,0x80,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
  606.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  607.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  608.     };
  609.  
  610. static unsigned char                oEighthRestMask[] =
  611.     {
  612.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  613.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  614.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xBC,0x00,0x00,0x0F,0xFC,0x00,
  615.         0x00,0x0F,0xFC,0x00,0x00,0x0F,0xFC,0x00,0x00,0x0F,0xF8,0x00,0x00,0x00,0x78,0x00,
  616.         0x00,0x00,0xF0,0x00,0x00,0x00,0xF0,0x00,0x00,0x01,0xE0,0x00,0x00,0x01,0xE0,0x00,
  617.         0x00,0x03,0xC0,0x00,0x00,0x03,0xC0,0x00,0x00,0x03,0x80,0x00,0x00,0x03,0x80,0x00,
  618.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  619.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  620.     };
  621.  
  622. static unsigned char                oQuarterRestImage[] =
  623.     {
  624.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  625.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  626.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  627.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  628.         0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x03,0x00,0x00,
  629.         0x00,0x03,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x03,0x00,0x00,
  630.         0x00,0x06,0x80,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x06,0x00,0x00,
  631.         0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  632.     };
  633.  
  634. static unsigned char                oQuarterRestMask[] =
  635.     {
  636.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  637.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  638.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  639.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  640.         0x00,0x1C,0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x1F,0x80,0x00,0x00,0x0F,0x80,0x00,
  641.         0x00,0x0F,0x80,0x00,0x00,0x0F,0x80,0x00,0x00,0x0F,0x80,0x00,0x00,0x0F,0xC0,0x00,
  642.         0x00,0x1F,0xC0,0x00,0x00,0x1F,0xC0,0x00,0x00,0x1F,0x00,0x00,0x00,0x1F,0x80,0x00,
  643.         0x00,0x0F,0x80,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  644.     };
  645.  
  646. static unsigned char                oHalfRestImage[] =
  647.     {
  648.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  649.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  650.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  651.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  652.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  653.         0x00,0x1F,0xC0,0x00,0x00,0x1F,0xC0,0x00,0x00,0x1F,0xC0,0x00,0x00,0xFF,0xF8,0x00,
  654.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  655.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  656.     };
  657.  
  658. static unsigned char                oHalfRestMask[] =
  659.     {
  660.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  661.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  662.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  663.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  664.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xE0,0x00,
  665.         0x00,0x3F,0xE0,0x00,0x00,0x3F,0xE0,0x00,0x01,0xFF,0xFC,0x00,0x01,0xFF,0xFC,0x00,
  666.         0x01,0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  667.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  668.     };
  669.  
  670. static unsigned char                oWholeRestImage[] =
  671.     {
  672.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  673.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  674.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  675.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  676.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  677.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xF8,0x00,
  678.         0x00,0x1F,0xC0,0x00,0x00,0x1F,0xC0,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,0x00,0x00,
  679.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  680.     };
  681.  
  682. static unsigned char                oWholeRestMask[] =
  683.     {
  684.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  685.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  686.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  687.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  688.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  689.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFC,0x00,0x01,0xFF,0xFC,0x00,
  690.         0x01,0xFF,0xFC,0x00,0x00,0x3F,0xE0,0x00,0x00,0x3F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  691.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  692.     };
  693.  
  694. static unsigned char                oDoubleRestImage[] =
  695.     {
  696.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  697.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  698.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  699.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  700.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  701.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xF8,0x00,
  702.         0x00,0x1D,0xC0,0x00,0x00,0x1D,0xC0,0x00,0x00,0x1D,0xC0,0x00,0x00,0x00,0x00,0x00,
  703.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  704.     };
  705.  
  706. static unsigned char                oDoubleRestMask[] =
  707.     {
  708.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  709.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  710.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  711.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  712.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  713.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFC,0x00,0x01,0xFF,0xFC,0x00,
  714.         0x01,0xFF,0xFC,0x00,0x00,0x3F,0xE0,0x00,0x00,0x3F,0xE0,0x00,0x00,0x3F,0xE0,0x00,
  715.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  716.     };
  717.  
  718. static unsigned char                oQuadRestImage[] =
  719.     {
  720.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  721.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  722.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  723.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  724.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  725.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFC,0x00,
  726.         0x00,0x6D,0xB0,0x00,0x00,0x6D,0xB0,0x00,0x00,0x6D,0xB0,0x00,0x00,0x00,0x00,0x00,
  727.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  728.     };
  729.  
  730. static unsigned char                oQuadRestMask[] =
  731.     {
  732.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  733.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  734.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  735.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  736.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  737.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xFE,0x00,0x03,0xFF,0xFE,0x00,
  738.         0x03,0xFF,0xFE,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,0x00,0xFF,0xF8,0x00,
  739.         0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
  740.     };
  741.  
  742. static unsigned char                oGreyMask[] =
  743.     {
  744.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  745.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  746.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  747.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  748.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  749.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  750.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,
  751.         0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA
  752.     };
  753.  
  754.  
  755. MyBoolean                        InitializeNoteImages(void)
  756.     {
  757.         ERROR(Initialized,PRERR(ForceAbort,"InitializeNoteImages:  already initialized"));
  758.         EXECUTE(Initialized = True;)
  759.         /* we do not watch for out of memory conditions because this should be */
  760.         /* called early when there is plenty of memory available */
  761.         SixtyFourthNoteImage = MakeBitmap(oSixtyFourthNoteImage,32,32,4);
  762.         if (SixtyFourthNoteImage == NIL)
  763.             {
  764.              FailurePoint1:
  765.                 return False;
  766.             }
  767.         SixtyFourthNoteMask = MakeBitmap(oSixtyFourthNoteMask,32,32,4);
  768.         if (SixtyFourthNoteMask == NIL)
  769.             {
  770.              FailurePoint2:
  771.                 DisposeBitmap(SixtyFourthNoteImage);
  772.                 goto FailurePoint1;
  773.             }
  774.         ThirtySecondNoteImage = MakeBitmap(oThirtySecondNoteImage,32,32,4);
  775.         if (ThirtySecondNoteImage == NIL)
  776.             {
  777.              FailurePoint3:
  778.                 DisposeBitmap(SixtyFourthNoteMask);
  779.                 goto FailurePoint2;
  780.             }
  781.         ThirtySecondNoteMask = MakeBitmap(oThirtySecondNoteMask,32,32,4);
  782.         if (ThirtySecondNoteMask == NIL)
  783.             {
  784.              FailurePoint4:
  785.                 DisposeBitmap(ThirtySecondNoteImage);
  786.                 goto FailurePoint3;
  787.             }
  788.         SixteenthNoteImage = MakeBitmap(oSixteenthNoteImage,32,32,4);
  789.         if (SixteenthNoteImage == NIL)
  790.             {
  791.              FailurePoint5:
  792.                 DisposeBitmap(ThirtySecondNoteMask);
  793.                 goto FailurePoint4;
  794.             }
  795.         SixteenthNoteMask = MakeBitmap(oSixteenthNoteMask,32,32,4);
  796.         if (SixteenthNoteMask == NIL)
  797.             {
  798.              FailurePoint6:
  799.                 DisposeBitmap(SixteenthNoteImage);
  800.                 goto FailurePoint5;
  801.             }
  802.         EighthNoteImage = MakeBitmap(oEighthNoteImage,32,32,4);
  803.         if (EighthNoteImage == NIL)
  804.             {
  805.              FailurePoint7:
  806.                 DisposeBitmap(SixteenthNoteMask);
  807.                 goto FailurePoint6;
  808.             }
  809.         EighthNoteMask = MakeBitmap(oEighthNoteMask,32,32,4);
  810.         if (EighthNoteMask == NIL)
  811.             {
  812.              FailurePoint8:
  813.                 DisposeBitmap(EighthNoteImage);
  814.                 goto FailurePoint7;
  815.             }
  816.         QuarterNoteImage = MakeBitmap(oQuarterNoteImage,32,32,4);
  817.         if (QuarterNoteImage == NIL)
  818.             {
  819.              FailurePoint9:
  820.                 DisposeBitmap(EighthNoteMask);
  821.                 goto FailurePoint8;
  822.             }
  823.         QuarterNoteMask = MakeBitmap(oQuarterNoteMask,32,32,4);
  824.         if (QuarterNoteMask == NIL)
  825.             {
  826.              FailurePoint10:
  827.                 DisposeBitmap(QuarterNoteImage);
  828.                 goto FailurePoint9;
  829.             }
  830.         HalfNoteImage = MakeBitmap(oHalfNoteImage,32,32,4);
  831.         if (HalfNoteImage == NIL)
  832.             {
  833.              FailurePoint11:
  834.                 DisposeBitmap(QuarterNoteMask);
  835.                 goto FailurePoint10;
  836.             }
  837.         HalfNoteMask = MakeBitmap(oHalfNoteMask,32,32,4);
  838.         if (HalfNoteMask == NIL)
  839.             {
  840.              FailurePoint12:
  841.                 DisposeBitmap(HalfNoteImage);
  842.                 goto FailurePoint11;
  843.             }
  844.         WholeNoteImage = MakeBitmap(oWholeNoteImage,32,32,4);
  845.         if (WholeNoteImage == NIL)
  846.             {
  847.              FailurePoint13:
  848.                 DisposeBitmap(HalfNoteMask);
  849.                 goto FailurePoint12;
  850.             }
  851.         WholeNoteMask = MakeBitmap(oWholeNoteMask,32,32,4);
  852.         if (WholeNoteMask == NIL)
  853.             {
  854.              FailurePoint14:
  855.                 DisposeBitmap(WholeNoteImage);
  856.                 goto FailurePoint13;
  857.             }
  858.         DoubleNoteImage = MakeBitmap(oDoubleNoteImage,32,32,4);
  859.         if (DoubleNoteImage == NIL)
  860.             {
  861.              FailurePoint15:
  862.                 DisposeBitmap(WholeNoteMask);
  863.                 goto FailurePoint14;
  864.             }
  865.         DoubleNoteMask = MakeBitmap(oDoubleNoteMask,32,32,4);
  866.         if (DoubleNoteMask == NIL)
  867.             {
  868.              FailurePoint16:
  869.                 DisposeBitmap(DoubleNoteImage);
  870.                 goto FailurePoint15;
  871.             }
  872.         QuadNoteImage = MakeBitmap(oQuadNoteImage,32,32,4);
  873.         if (QuadNoteImage == NIL)
  874.             {
  875.              FailurePoint17:
  876.                 DisposeBitmap(DoubleNoteMask);
  877.                 goto FailurePoint16;
  878.             }
  879.         QuadNoteMask = MakeBitmap(oQuadNoteMask,32,32,4);
  880.         if (QuadNoteMask == NIL)
  881.             {
  882.              FailurePoint18:
  883.                 DisposeBitmap(QuadNoteImage);
  884.                 goto FailurePoint17;
  885.             }
  886.         DotImage = MakeBitmap(oDotImage,32,32,4);
  887.         if (DotImage == NIL)
  888.             {
  889.              FailurePoint19:
  890.                 DisposeBitmap(QuadNoteMask);
  891.                 goto FailurePoint18;
  892.             }
  893.         DotMask = MakeBitmap(oDotMask,32,32,4);
  894.         if (DotMask == NIL)
  895.             {
  896.              FailurePoint20:
  897.                 DisposeBitmap(DotImage);
  898.                 goto FailurePoint19;
  899.             }
  900.         SharpImage = MakeBitmap(oSharpImage,32,32,4);
  901.         if (SharpImage == NIL)
  902.             {
  903.              FailurePoint21:
  904.                 DisposeBitmap(DotMask);
  905.                 goto FailurePoint20;
  906.             }
  907.         SharpMask = MakeBitmap(oSharpMask,32,32,4);
  908.         if (SharpMask == NIL)
  909.             {
  910.              FailurePoint22:
  911.                 DisposeBitmap(SharpImage);
  912.                 goto FailurePoint21;
  913.             }
  914.         FlatImage = MakeBitmap(oFlatImage,32,32,4);
  915.         if (FlatImage == NIL)
  916.             {
  917.              FailurePoint23:
  918.                 DisposeBitmap(SharpMask);
  919.                 goto FailurePoint22;
  920.             }
  921.         FlatMask = MakeBitmap(oFlatMask,32,32,4);
  922.         if (FlatMask == NIL)
  923.             {
  924.              FailurePoint24:
  925.                 DisposeBitmap(FlatImage);
  926.                 goto FailurePoint23;
  927.             }
  928.         NaturalImage = MakeBitmap(oNaturalImage,32,32,4);
  929.         if (NaturalImage == NIL)
  930.             {
  931.              FailurePoint25:
  932.                 DisposeBitmap(FlatMask);
  933.                 goto FailurePoint24;
  934.             }
  935.         NaturalMask = MakeBitmap(oNaturalMask,32,32,4);
  936.         if (NaturalMask == NIL)
  937.             {
  938.              FailurePoint26:
  939.                 DisposeBitmap(NaturalImage);
  940.                 goto FailurePoint25;
  941.             }
  942.         SortaSharpImage = MakeBitmap(oSortaSharpImage,32,32,4);
  943.         if (SortaSharpImage == NIL)
  944.             {
  945.              FailurePoint27:
  946.                 DisposeBitmap(NaturalMask);
  947.                 goto FailurePoint26;
  948.             }
  949.         SortaSharpMask = MakeBitmap(oSortaSharpMask,32,32,4);
  950.         if (SortaSharpMask == NIL)
  951.             {
  952.              FailurePoint28:
  953.                 DisposeBitmap(SortaSharpImage);
  954.                 goto FailurePoint27;
  955.             }
  956.         SortaFlatImage = MakeBitmap(oSortaFlatImage,32,32,4);
  957.         if (SortaFlatImage == NIL)
  958.             {
  959.              FailurePoint29:
  960.                 DisposeBitmap(SortaSharpMask);
  961.                 goto FailurePoint28;
  962.             }
  963.         SortaFlatMask = MakeBitmap(oSortaFlatMask,32,32,4);
  964.         if (SortaFlatMask == NIL)
  965.             {
  966.              FailurePoint30:
  967.                 DisposeBitmap(SortaFlatImage);
  968.                 goto FailurePoint29;
  969.             }
  970.         Div3Image = MakeBitmap(oDiv3Image,32,32,4);
  971.         if (Div3Image == NIL)
  972.             {
  973.              FailurePoint31:
  974.                 DisposeBitmap(SortaFlatMask);
  975.                 goto FailurePoint30;
  976.             }
  977.         Div3Mask = MakeBitmap(oDiv3Mask,32,32,4);
  978.         if (Div3Mask == NIL)
  979.             {
  980.              FailurePoint32:
  981.                 DisposeBitmap(Div3Image);
  982.                 goto FailurePoint31;
  983.             }
  984.         Div5Image = MakeBitmap(oDiv5Image,32,32,4);
  985.         if (Div5Image == NIL)
  986.             {
  987.              FailurePoint33:
  988.                 DisposeBitmap(Div3Mask);
  989.                 goto FailurePoint32;
  990.             }
  991.         Div5Mask = MakeBitmap(oDiv5Mask,32,32,4);
  992.         if (Div5Mask == NIL)
  993.             {
  994.              FailurePoint34:
  995.                 DisposeBitmap(Div5Image);
  996.                 goto FailurePoint33;
  997.             }
  998.         Div7Image = MakeBitmap(oDiv7Image,32,32,4);
  999.         if (Div7Image == NIL)
  1000.             {
  1001.              FailurePoint35:
  1002.                 DisposeBitmap(Div5Mask);
  1003.                 goto FailurePoint34;
  1004.             }
  1005.         Div7Mask = MakeBitmap(oDiv7Mask,32,32,4);
  1006.         if (Div7Mask == NIL)
  1007.             {
  1008.              FailurePoint36:
  1009.                 DisposeBitmap(Div7Image);
  1010.                 goto FailurePoint35;
  1011.             }
  1012.         SixtyFourthRestImage = MakeBitmap(oSixtyFourthRestImage,32,32,4);
  1013.         if (SixtyFourthRestImage == NIL)
  1014.             {
  1015.              FailurePoint37:
  1016.                 DisposeBitmap(Div7Mask);
  1017.                 goto FailurePoint36;
  1018.             }
  1019.         SixtyFourthRestMask = MakeBitmap(oSixtyFourthRestMask,32,32,4);
  1020.         if (SixtyFourthRestMask == NIL)
  1021.             {
  1022.              FailurePoint38:
  1023.                 DisposeBitmap(SixtyFourthRestImage);
  1024.                 goto FailurePoint37;
  1025.             }
  1026.         ThirtySecondRestImage = MakeBitmap(oThirtySecondRestImage,32,32,4);
  1027.         if (ThirtySecondRestImage == NIL)
  1028.             {
  1029.              FailurePoint39:
  1030.                 DisposeBitmap(SixtyFourthRestMask);
  1031.                 goto FailurePoint38;
  1032.             }
  1033.         ThirtySecondRestMask = MakeBitmap(oThirtySecondRestMask,32,32,4);
  1034.         if (ThirtySecondRestMask == NIL)
  1035.             {
  1036.              FailurePoint40:
  1037.                 DisposeBitmap(ThirtySecondRestImage);
  1038.                 goto FailurePoint39;
  1039.             }
  1040.         SixteenthRestImage = MakeBitmap(oSixteenthRestImage,32,32,4);
  1041.         if (SixteenthRestImage == NIL)
  1042.             {
  1043.              FailurePoint41:
  1044.                 DisposeBitmap(ThirtySecondRestMask);
  1045.                 goto FailurePoint40;
  1046.             }
  1047.         SixteenthRestMask = MakeBitmap(oSixteenthRestMask,32,32,4);
  1048.         if (SixteenthRestMask == NIL)
  1049.             {
  1050.              FailurePoint42:
  1051.                 DisposeBitmap(SixteenthRestImage);
  1052.                 goto FailurePoint41;
  1053.             }
  1054.         EighthRestImage = MakeBitmap(oEighthRestImage,32,32,4);
  1055.         if (EighthRestImage == NIL)
  1056.             {
  1057.              FailurePoint43:
  1058.                 DisposeBitmap(SixteenthRestMask);
  1059.                 goto FailurePoint42;
  1060.             }
  1061.         EighthRestMask = MakeBitmap(oEighthRestMask,32,32,4);
  1062.         if (EighthRestMask == NIL)
  1063.             {
  1064.              FailurePoint44:
  1065.                 DisposeBitmap(EighthRestImage);
  1066.                 goto FailurePoint43;
  1067.             }
  1068.         QuarterRestImage = MakeBitmap(oQuarterRestImage,32,32,4);
  1069.         if (QuarterRestImage == NIL)
  1070.             {
  1071.              FailurePoint45:
  1072.                 DisposeBitmap(EighthRestMask);
  1073.                 goto FailurePoint44;
  1074.             }
  1075.         QuarterRestMask = MakeBitmap(oQuarterRestMask,32,32,4);
  1076.         if (QuarterRestMask == NIL)
  1077.             {
  1078.              FailurePoint46:
  1079.                 DisposeBitmap(QuarterRestImage);
  1080.                 goto FailurePoint45;
  1081.             }
  1082.         HalfRestImage = MakeBitmap(oHalfRestImage,32,32,4);
  1083.         if (HalfRestImage == NIL)
  1084.             {
  1085.              FailurePoint47:
  1086.                 DisposeBitmap(QuarterRestMask);
  1087.                 goto FailurePoint46;
  1088.             }
  1089.         HalfRestMask = MakeBitmap(oHalfRestMask,32,32,4);
  1090.         if (HalfRestMask == NIL)
  1091.             {
  1092.              FailurePoint48:
  1093.                 DisposeBitmap(HalfRestImage);
  1094.                 goto FailurePoint47;
  1095.             }
  1096.         WholeRestImage = MakeBitmap(oWholeRestImage,32,32,4);
  1097.         if (WholeRestImage == NIL)
  1098.             {
  1099.              FailurePoint49:
  1100.                 DisposeBitmap(HalfRestMask);
  1101.                 goto FailurePoint48;
  1102.             }
  1103.         WholeRestMask = MakeBitmap(oWholeRestMask,32,32,4);
  1104.         if (WholeRestMask == NIL)
  1105.             {
  1106.              FailurePoint50:
  1107.                 DisposeBitmap(WholeRestImage);
  1108.                 goto FailurePoint49;
  1109.             }
  1110.         DoubleRestImage = MakeBitmap(oDoubleRestImage,32,32,4);
  1111.         if (DoubleRestImage == NIL)
  1112.             {
  1113.              FailurePoint51:
  1114.                 DisposeBitmap(WholeRestMask);
  1115.                 goto FailurePoint50;
  1116.             }
  1117.         DoubleRestMask = MakeBitmap(oDoubleRestMask,32,32,4);
  1118.         if (DoubleRestMask == NIL)
  1119.             {
  1120.              FailurePoint52:
  1121.                 DisposeBitmap(DoubleRestImage);
  1122.                 goto FailurePoint51;
  1123.             }
  1124.         QuadRestImage = MakeBitmap(oQuadRestImage,32,32,4);
  1125.         if (QuadRestImage == NIL)
  1126.             {
  1127.              FailurePoint53:
  1128.                 DisposeBitmap(DoubleRestMask);
  1129.                 goto FailurePoint52;
  1130.             }
  1131.         QuadRestMask = MakeBitmap(oQuadRestMask,32,32,4);
  1132.         if (QuadRestMask == NIL)
  1133.             {
  1134.              FailurePoint54:
  1135.                 DisposeBitmap(QuadRestImage);
  1136.                 goto FailurePoint53;
  1137.             }
  1138.         GreyMask = MakeBitmap(oGreyMask,32,32,4);
  1139.         if (GreyMask == NIL)
  1140.             {
  1141.              FailurePoint55:
  1142.                 DisposeBitmap(QuadRestMask);
  1143.                 goto FailurePoint54;
  1144.             }
  1145.         return True;
  1146.     }
  1147.  
  1148.  
  1149. void                                CleanupNoteImages(void)
  1150.     {
  1151.         ERROR(!Initialized,PRERR(ForceAbort,"CleanupNoteImages:  not initialized"));
  1152.         EXECUTE(Initialized = False;)
  1153.         DisposeBitmap(SixtyFourthNoteImage);
  1154.         DisposeBitmap(SixtyFourthNoteMask);
  1155.         DisposeBitmap(ThirtySecondNoteImage);
  1156.         DisposeBitmap(ThirtySecondNoteMask);
  1157.         DisposeBitmap(SixteenthNoteImage);
  1158.         DisposeBitmap(SixteenthNoteMask);
  1159.         DisposeBitmap(EighthNoteImage);
  1160.         DisposeBitmap(EighthNoteMask);
  1161.         DisposeBitmap(QuarterNoteImage);
  1162.         DisposeBitmap(QuarterNoteMask);
  1163.         DisposeBitmap(HalfNoteImage);
  1164.         DisposeBitmap(HalfNoteMask);
  1165.         DisposeBitmap(WholeNoteImage);
  1166.         DisposeBitmap(WholeNoteMask);
  1167.         DisposeBitmap(DoubleNoteImage);
  1168.         DisposeBitmap(DoubleNoteMask);
  1169.         DisposeBitmap(QuadNoteImage);
  1170.         DisposeBitmap(QuadNoteMask);
  1171.         DisposeBitmap(DotImage);
  1172.         DisposeBitmap(DotMask);
  1173.         DisposeBitmap(SharpImage);
  1174.         DisposeBitmap(SharpMask);
  1175.         DisposeBitmap(FlatImage);
  1176.         DisposeBitmap(FlatMask);
  1177.         DisposeBitmap(NaturalImage);
  1178.         DisposeBitmap(NaturalMask);
  1179.         DisposeBitmap(SortaSharpImage);
  1180.         DisposeBitmap(SortaSharpMask);
  1181.         DisposeBitmap(SortaFlatImage);
  1182.         DisposeBitmap(SortaFlatMask);
  1183.         DisposeBitmap(Div3Image);
  1184.         DisposeBitmap(Div3Mask);
  1185.         DisposeBitmap(Div5Image);
  1186.         DisposeBitmap(Div5Mask);
  1187.         DisposeBitmap(Div7Image);
  1188.         DisposeBitmap(Div7Mask);
  1189.         DisposeBitmap(SixtyFourthRestImage);
  1190.         DisposeBitmap(SixtyFourthRestMask);
  1191.         DisposeBitmap(ThirtySecondRestImage);
  1192.         DisposeBitmap(ThirtySecondRestMask);
  1193.         DisposeBitmap(SixteenthRestImage);
  1194.         DisposeBitmap(SixteenthRestMask);
  1195.         DisposeBitmap(EighthRestImage);
  1196.         DisposeBitmap(EighthRestMask);
  1197.         DisposeBitmap(QuarterRestImage);
  1198.         DisposeBitmap(QuarterRestMask);
  1199.         DisposeBitmap(HalfRestImage);
  1200.         DisposeBitmap(HalfRestMask);
  1201.         DisposeBitmap(WholeRestImage);
  1202.         DisposeBitmap(WholeRestMask);
  1203.         DisposeBitmap(DoubleRestImage);
  1204.         DisposeBitmap(DoubleRestMask);
  1205.         DisposeBitmap(QuadRestImage);
  1206.         DisposeBitmap(QuadRestMask);
  1207.         DisposeBitmap(GreyMask);
  1208.     }
  1209.